<template>
  <!-- 父容器 -->
  <div class="container">
    <div class="hello">
      <h1>医师电子化注册信息系统（机构版）软件</h1>
      <br>
      <br>
      <br>
      <br>
      <el-button @click="closeWindow" type="primary" style="width: 50px">退出</el-button>
    </div>
  </div>

</template>

<script>
import {ElMessage} from 'element-plus'

export default {
  name: 'MainIndex',
  props: {
    msg: String
  },
  data() {
    return {
      disabled: true,
      loading: false,
      tableData: [],
      dataList: []
    };
  },
  methods: {
    closeWindow() {
      // 关闭当前窗口
      window.electronAPI.closeWindow();
      //window.close()
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
:deep(.el-upload-list__item-name) {
  padding: 5px 0;
  font-size: 20px;
}

.hello {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 8px 0 0;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: #42b983;
}

.box {
  width: 450px;
  height: 150px;
  position: relative;
}

.chl_box {
  width: 450px;
  height: 150px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

* {
  margin: 0;
  padding: 0;
}

/* 父容器样式 */
.container {
  /*height: 1000px;*/
  margin-top: 100px;
}

/* 子容器样式 */
.content {
  width: 300px;
  height: 800px;
  background-color: white;
  /* 水平垂直居中 */
  /*margin: 50px auto;*/
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
}


</style>
